package com.lyz.moil.server.action;

import com.lyz.moil.server.service.ChatCommandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created with IntelliJ IDEA.
 * User: xi
 * Date: 13-12-3
 * Time: 下午2:03
 * To change this template use File | Settings | File Templates.
 */

@Controller
@RequestMapping("/server/chat/command")
public class ChatCommandAction {

    @Autowired
    private ChatCommandService chatCommandService;

    @RequestMapping("/chat")
//    @ResponseBody
    public String chat(Model model) {
        chatCommandService.chat();
        return "/server/chat/command/chat";
    }

}
